import request from '@/utils/request'

// 查询塔台基本信息列表
export function listControltower(query) {
  return request({
    url: '/baseinfo/controltower/list',
    method: 'get',
    params: query
  })
}

// 查询塔台基本信息详细
export function getControltower(towerid) {
  return request({
    url: '/baseinfo/controltower/' + towerid,
    method: 'get'
  })
}

// 新增塔台基本信息
export function addControltower(data) {
  return request({
    url: '/baseinfo/controltower',
    method: 'post',
    data: data
  })
}

// 修改塔台基本信息
export function updateControltower(data) {
  return request({
    url: '/baseinfo/controltower',
    method: 'put',
    data: data
  })
}

// 删除塔台基本信息
export function delControltower(towerid) {
  return request({
    url: '/baseinfo/controltower/' + towerid,
    method: 'delete'
  })
}
